﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Test.TestCusTomControl {
    public partial class TestDataGridViewForm : Form {
        public TestDataGridViewForm() {
            InitializeComponent();
            int index = 0;
            for (int i = 0; i < 5000; i++) {
                index = this.dataGridView1.Rows.Add();
                this.dataGridView1.Rows[index].Cells[0].Value = i.ToString();
                this.dataGridView1.Rows[index].Cells[1].Value = "滚动条测试";
                this.dataGridView1.Rows[index].Cells[2].Value = "DataGridView";
            }
        }
    }
}
